<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="/WEB-INF/pages/include/taglib.jsp"%>
<!DOCTYPE html>
<html>
<head>
    <!-- Meta, title, CSS, favicons, etc. -->
    <meta charset="utf-8">
    <title>左侧导航</title>
</head>

<body>
	 <!-- Start: Sidebar Menu -->
     <ul class="nav sidebar-menu">
         <li class="sidebar-label pt20">菜单</li>
         <li class="active">
             <a href="#${ctx}/dashboard" id="menu-index">
                 <span class="glyphicon glyphicon-home"></span>
                 <span class="sidebar-title">首页</span>
                 <span class="sidebar-title-tray">
                 	<span class="label label-xs bg-primary">New</span>
       			</span>
             </a>
         </li>
         <c:set var="firstMenu" value="true"/>
         <c:forEach var="menu" items="${menus}">
         	<c:if test="${empty menu.parentid}">
         		<li>
          		<a id="menu_${menu.id}" class="menu-main-clazz accordion-toggle ${not empty firstMenu && firstMenu ? 'menu-open' : ''}" href="${fn:indexOf(menu.url, '://') eq -1 ? ctx : ''}#${not empty menu.url ? menu.url : '/404'}">
                   <span class="glyphicon ${menu.icon}"></span>
                   <span class="sidebar-title">${menu.name}</span>
                   <span class="caret"></span>
               </a>
               <ul class="nav sub-nav">
                <c:forEach var="submenu" items="${menus}">
             	<c:if test="${submenu.parentid eq menu.id}">
             		<li>
                         <a id="menu_${submenu.id}" class="menu-clazz" href="${fn:indexOf(submenu.url, '://') eq -1 ? ctx : ''}#${not empty submenu.url ? submenu.url : '/404'}"><span class="${submenu.icon}"></span>${submenu.name}</a>
                    </li>
             	</c:if>
            	</c:forEach>
           	</ul>
          	</li>
         	</c:if>
         	<c:set var="firstMenu" value="false"/>
         </c:forEach>
         <!-- sidebar progress bars -->
          <li class="sidebar-label pt25 pb10">用户数据统计</li>
          <li class="sidebar-stat">
            <a href="#projectOne" class="fs11">
              <span class="fa fa-inbox text-info"></span>
              <span class="sidebar-title text-muted">邮件存储</span>
              <span class="pull-right mr20 text-muted">35%</span>
              <div class="progress progress-bar-xs mh20 mb10">
                <div class="progress-bar progress-bar-info" role="progressbar" aria-valuenow="45" aria-valuemin="0" aria-valuemax="100" style="width: 35%">
                  <span class="sr-only">35% Complete</span>
                </div>
              </div>
            </a>
          </li>
          <li class="sidebar-stat">
            <a href="#projectOne" class="fs11">
              <span class="fa fa-dropbox text-warning"></span>
              <span class="sidebar-title text-muted">云盘空间</span>
              <span class="pull-right mr20 text-muted">58%</span>
              <div class="progress progress-bar-xs mh20">
                <div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="45" aria-valuemin="0" aria-valuemax="100" style="width: 58%">
                  <span class="sr-only">58% Complete</span>
                </div>
              </div>
            </a>
          </li>
     </ul>
     <!-- End: Sidebar Menu -->
</body>
</html>
